package simulation;

import java.awt.Dimension;
import java.awt.Point;

import view.Canvas;

public class tempMass extends Mass {
	Canvas myView;

	public tempMass(double x, double y, double mass, Canvas view) {
		super(x, y, mass);
		myView = view;
	}

	public void update(double elapsedTime, Dimension bounds) {
		Point mousePos = myView.getLastMousePosition();
		super.setCenter(mousePos.x, mousePos.y);

	}

}
